﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BingVis.SilverlightClient.GoogleTransit;
using BingVis.SilverlightClient.Common;
using System.Windows;

namespace BingVis.SilverlightClient
{
    public class TransitStopViewModel : ViewModelBase
    {
        public ITransitStop Stop { get; private set; }
        public DelegateCommand<object> Selected { get; private set; }

        public TransitStopViewModel(ITransitStop stop)
            : base()
        {
            Stop = stop;
            Selected = new DelegateCommand<object>(OnSelected);
        }

        private void OnSelected(object parm)
        {
            mediator.Send<StopSelectedMessage>(new StopSelectedMessage(this.Stop));
        }
            
    }
}
